package com.motorhome.h5.common.statics;

import java.io.IOException;
import java.util.Properties;

/**
 * @author: John
 */
public class H5Statics {

    private static Properties prop = new Properties();

    static {
        try {
            prop.load(H5Statics.class.getResourceAsStream("/config/conf-h5.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static final String SESSION_KEY = "MH_H5_SESSION";

    public static final long H5_TIMEOUT = Long.parseLong(prop.getProperty("h5.session.timeout"));

    public static final String baseFileUrl = prop.getProperty("h5.file.url");
    public static final String baseFilePath = prop.getProperty("h5.file.path");

    public static final String OPEN_ID = prop.getProperty("h5.open.openid");
    public static final String OPEN_SECRET = prop.getProperty("h5.open.secret");
    public static final String OPEN_USERACCOUNT = prop.getProperty("h5.open.useraccount");

    public static final String ADD_MEMBER_URL = prop.getProperty("h5.open.add_member_url");
    public static final String UPDATE_MEMBERPOINT_URL = prop.getProperty("h5.open.update_memberpoint_url");
    public static final String GET_MEMBERINFO_URL = prop.getProperty("h5.open.get_memberinfo_url");
    public static final String GET_COUPNSENDPAGEDV2_URL = prop.getProperty("h5.open.get_coupnsendpagedv2_url");
    public static final String SUBCOUPON_URL = prop.getProperty("h5.open.subcoupon_url");
    public static final String CONSUME_URL = prop.getProperty("h5.open.consume_url");

    //微信公众号
    public static final String MP_TOKEN_URL = prop.getProperty("h5.weixin.mp.tokenurl");
    public static final String MP_AUTHORIZE_URL = prop.getProperty("h5.weixin.mp.authorizeurl");
    public static final String MP_ACCESSTOKEN_URL = prop.getProperty("h5.weixin.mp.accesstokenurl");
    public static final String MP_USERINFO_URL = prop.getProperty("h5.weixin.mp.userinfourl");
    public static final String MP_REDIRECT_URL = prop.getProperty("h5.weixin.mp.redirecturl");

    public static final String MP_APPID = prop.getProperty("h5.weixin.mp.appID");
    public static final String MP_APPSECRET = prop.getProperty("h5.weixin.mp.appsecret");
    public static final String MP_TOKEN = prop.getProperty("h5.weixin.mp.token");

    //微信公众号支付
    public static final String MP_PAY_MCH_ID = prop.getProperty("h5.weixin.pay.mch_id");
    public static final String MP_PAY_APIKEY = prop.getProperty("h5.weixin.pay.apikey");
    public static final String MP_PAY_UNIFIEDORDER_URL = prop.getProperty("h5.weixin.pay.unifiedorderurl");
    public static final String MP_PAY_NOTIFY_URL = prop.getProperty("h5.weixin.pay.notify_url");

    //阿里云短信
    public static final String ALIYUN_SMS_ACCESSKEYID = prop.getProperty("h5.sms.aliyun.accesskeyid");
    public static final String ALIYUN_SMS_ACCESSKEYSECRET = prop.getProperty("h5.sms.aliyun.accesskeysecret");
    public static final String ALIYUN_SMS_SIGNNAME = "慢生活房车";
    public static final String ALIYUN_SMS_TEMPLATECODE = prop.getProperty("h5.sms.aliyun.templatecode");

}
